﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DA;

namespace BL
{
    public class EmployeesRepository : OrderDeskEntityRepository<DA.Employee>
    {
        public override int Delete(Employee Entity, bool saveChanges = true)
        {
            // Only mark as delete
            return base.Delete(Entity, saveChanges);
        }

        protected override System.Linq.Expressions.Expression<Func<Employee, bool>> FilterByClientId(int clientId)
        {
            return x => x.ClientId == clientId;
        }
    }
}
